package homework.day07;

/**
 * @author ThinkBook
 */
public class Test01 {
    public static void main(String[] args) {
        Student s = new Student("张三", 19, "男", "10000");
        System.out.println(s.getName()); //输出张三
        System.out.println(s.getAge()); //输出19
        s.setName("李四");
        System.out.println(s.getName()); //输出李四
    }
}
class Student{
    private String name;
    private int age;
    private String id;
    private String gender;

    public Student(){}
    public Student(String name,int age,String gender,String id){
        this.age = age;
        this.name= name;
        this.gender = gender;
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}
